/**
 * 房间配置
 */
hall.create_room_tabData = {
    btn_1: {
        click: ['mapid_0'],
        show: ['word_rs', 'word_jushu', 'word_fufei', 'word_genxingwanfa', 'word_xingshuxuanze', 'word_xuanzewangshu',
            'word_jifenshangxian'],
        hide: ['word_zn', 'word_zm', 'word_wf', 'word_cp', 'word_xuanxiang','word_jifenshangxian_1','fengding','word_wf1'
        ,'word_fanshu1', 'word_fanshu', 'word_piaofen']
    },
    btn_2: {
        click: ['mapid_1'],
        show: ['word_rs', 'word_jushu', 'word_fufei', 'word_genxingwanfa', 'word_xingshuxuanze', 'word_xuanzewangshu',
            'word_xuanxiang', 'word_jifenshangxian_1'],
        hide: ['word_zn', 'word_zm', 'word_wf', 'word_cp', 'word_jifenshangxian','fengding','word_wf1', 'word_fanshu',
        'word_fanshu1', 'word_piaofen']
    },
    btn_3: {
        click: ['mapid_2'],
        show: ['fengding','word_wf','word_fufei','word_jushu','word_rs', 'word_piaofen'],
        hide: ['word_zn','word_zm','word_wf1','word_cp','word_genxingwanfa','word_xingshuxuanze','word_xuanzewangshu',
            'word_jifenshangxian','word_xuanxiang','word_jifenshangxian_1', 'word_fanshu', 'word_fanshu1']
    },
};
hall.tabData = {
    'tab_majiang': {'mapidList':['mapid_2'],'btnList':['btn_3'],'show':createRoom.res.tab_majiang_show,'hide':createRoom.res.tab_majiang_hide},
    'tab_poke': {'mapidList':['mapid_0','mapid_1'],'btnList':['btn_1','btn_2'],'show':createRoom.res.tab_poke_show,'hide':createRoom.res.tab_poke_hide}
}
var hall_create = {};
hall_create.pos3X = {
    1: 475,
    2: 715,
    3: 955
};
hall_create.pos4X = {
    1: 475,
    2: 625,
    3: 775,
    4: 925,
    5: 1065
};
hall_create.posY = {
    1: 574,
    2: 519,
    3: 464,
    4: 409,
    5: 354,
    6: 299,
    7: 244,
    8: 189,
    9: 134,

};
hall.create_room_wanFaData = [
    ['mapid', [
        ['落地扫', app.map_id.QYLDS, -1000, -1000, true, true, false],
        ['永州扯胡子', app.map_id.YZCHZ, -1000, -1000, true, true, false],
        ['王钓麻将', app.map_id.WD, -1000, -1000, false, true, false],
    ]],
    // 设置不允许选择支付方式默认房主支付、俱乐部支付


    ['maxPlayerCnt', [
        ['2人玩', 2, hall_create.pos3X[1], hall_create.posY[2], true, true, false, null, ['mapid_0','mapid_2']],
        ['3人玩', 3, hall_create.pos3X[2], hall_create.posY[2], false, true, false, null, ['mapid_0','mapid_2']],
        ['4人玩', 4, hall_create.pos3X[3], hall_create.posY[2], false, true, false, null, ['mapid_0','mapid_2']]
    ]],

    ['maxPlayerCnt_yz', [
        ['2人PK', 2, hall_create.pos3X[1], hall_create.posY[2], true, true, false, null, ['mapid_1']],
        ['3人激情', 3, hall_create.pos3X[2], hall_create.posY[2], false, true, false, null, ['mapid_1']],
    ]],
    ['AA', [
        ['房主支付', false, -10000, -10000, true, true, false, null, ['mapid_0', 'mapid_1', 'mapid_2']],
        ['AA支付', true, -10000, -10000, false, true, false, null, ['mapid_0', 'mapid_1', 'mapid_2']]
    ]],
    ['jushu', [
        ['6局', 6, hall_create.pos3X[1], hall_create.posY[1], true, true, false, null, ['mapid_0', 'mapid_1','mapid_2']],
        ['8局', 8, hall_create.pos3X[2], hall_create.posY[1], false, true, false, null, ['mapid_0', 'mapid_1','mapid_2']],
        ['10局', 10, hall_create.pos3X[3], hall_create.posY[1], false, true, false, null, ['mapid_0', 'mapid_1','mapid_2']]
    ]],

    ['xingType', [
        ['跟醒', 1, hall_create.pos3X[1], hall_create.posY[3], true, true, false, null, ['mapid_0', 'mapid_1']],
        ['翻醒', 2, hall_create.pos3X[2], hall_create.posY[3], false, true, false, null, ['mapid_0', 'mapid_1']],
    ]],

    ['xingBeiShu', [
        ['单醒', 3, hall_create.pos3X[1], hall_create.posY[4], true, true, false, null, ['mapid_0']],
        ['双醒', 6, hall_create.pos3X[2], hall_create.posY[4], false, true, false, null, ['mapid_0']],
    ]],

    ['xingBeiShu_1', [
        ['单醒', 1, hall_create.pos3X[1], hall_create.posY[4], true, true, false, null, ['mapid_1']],
        ['双醒', 2, hall_create.pos3X[2], hall_create.posY[4], false, true, false, null, ['mapid_1']],
    ]],

    ['laiZiCnt', [
        ['无王', 0, hall_create.pos4X[1], hall_create.posY[5], true, true, false, null, ['mapid_0', 'mapid_1']],
        ['单王', 1, hall_create.pos4X[2], hall_create.posY[5], false, true, false, null, ['mapid_0', 'mapid_1']],
        ['双王', 2, hall_create.pos4X[3], hall_create.posY[5], false, true, false, null, ['mapid_0', 'mapid_1']],
        ['三王', 3, hall_create.pos4X[4], hall_create.posY[5], false, true, false, null, ['mapid_0', 'mapid_1']],
        ['四王', 4, hall_create.pos4X[5], hall_create.posY[5], false, true, false, null, ['mapid_1']],
    ]],
    /*
     ['withPiao', [
     ['飘分', true, hall_create.pos3X[1], hall_create.posY[7], false, false, false, null, ['mapid_0', 'mapid_1']]
     ]],
     */
    ['withHongZhuan', [
        ['红转朱黑', true, hall_create.pos3X[1], hall_create.posY[6], false, false, false, null, ['mapid_1']]
    ]],
    /*
    ['tunBase_1', [
        ['15胡2囤', 2, hall_create.pos3X[1], hall_create.posY[6], true, true, false, null, ['mapid_0']],
        ['15胡5囤', 5, hall_create.pos3X[2], hall_create.posY[6], false, true, false, null, ['mapid_0']],
    ]],
     */
    ['tunBase', [
        ['15胡2囤', 2, hall_create.pos3X[1], hall_create.posY[7], true, true, false, null, ['mapid_1']],
        ['15胡5囤', 5, hall_create.pos3X[2], hall_create.posY[7], false, true, false, null, ['mapid_1']],
    ]],

    ['fengDing', [
        ['300封顶', 300, hall_create.pos3X[1], hall_create.posY[6], true, true, false, null, ['mapid_0']],
        ['600封顶', 600, hall_create.pos3X[2], hall_create.posY[6], false, true, false, null, ['mapid_0']],
        ['无限制', 0, hall_create.pos3X[3], hall_create.posY[6], false, true, false, null, ['mapid_0']],
    ]],

    ['fengDing_1', [
        ['300封顶', 300, hall_create.pos3X[1], hall_create.posY[8], true, true, false, null, ['mapid_1']],
        ['600封顶', 600, hall_create.pos3X[2], hall_create.posY[8], false, true, false, null, ['mapid_1']],
        ['无限制', 0, hall_create.pos3X[3], hall_create.posY[8], false, true, false, null, ['mapid_1']],
    ]],



    ['withYingHu', [
        ['两片', true, hall_create.pos3X[1],  hall_create.posY[3], true, false, false, null, ['mapid_2']]
    ]],
    ['withQiangGangHu', [
        ['抢杠胡', true, hall_create.pos3X[2],  hall_create.posY[3], true, false, false, null, ['mapid_2']]
    ]],
    ['quanKaiFang', [
        ['全开放', true, hall_create.pos3X[3],  hall_create.posY[3], false, false, false, null, ['mapid_2']]
    ]],
    /*
    ['withQiDui', [
        ['七对可胡', true, hall_create.pos3X[3],  hall_create.posY[3], true, false, false, null, ['mapid_2']]
    ]],
    ['withPiao', [
        ['飘', true, hall_create.pos3X[1],  hall_create.posY[4], true, false, false, null, ['mapid_2']]
    ]],
     */
    ['withPiao', [
        ['不飘', false, hall_create.pos4X[1],  hall_create.posY[4], true, true, false, null, ['mapid_2']],
        ['飘', true, hall_create.pos4X[2],  hall_create.posY[4], false, true, false, null, ['mapid_2']],
    ]],
    ['zhuaMaNum', [
        ['4码', 4, hall_create.pos4X[1],  hall_create.posY[5], true, true, false, null, ['mapid_2']],
        ['6码', 6, hall_create.pos4X[2],  hall_create.posY[5], false, true, false, null, ['mapid_2']],
        ['8码', 8, hall_create.pos4X[3],  hall_create.posY[5], false, true, false, null, ['mapid_2']],
        ['数字码',100, hall_create.pos4X[4],   hall_create.posY[5], false, true, false, null, ['mapid_2']]
    ]],
    ['wanjiarenshu0', [['2人',['maxPlayerCnt',2], hall_create.pos3X[1], hall_create.posY[2], false, false, false, null, ['mapid_0','mapid_2']]]],
    ['wanjiarenshu1', [['3人',['maxPlayerCnt',3], hall_create.pos3X[2], hall_create.posY[2], false, false, false, null, ['mapid_0','mapid_2']]]],
    ['wanjiarenshu2', [['4人',['maxPlayerCnt',4], hall_create.pos3X[3],  hall_create.posY[2], true, false, false, null, ['mapid_0','mapid_2']]]],

    ['wanjiarenshu0_yz', [['2人PK',['maxPlayerCnt',2], hall_create.pos3X[1], hall_create.posY[2], false, false, false, null, ['mapid_1']]]],
    ['wanjiarenshu1_yz', [['3人激情',['maxPlayerCnt',3], hall_create.pos3X[2], hall_create.posY[2], false, false, false, null, ['mapid_1']]]],

    ['xianhu', [
        ['按王限胡', 1,  hall_create.pos3X[1], hall_create.posY[9], false, false, false, null, ['mapid_1'], '两王至少王钓，三王四王至少王闯才能胡牌'],
        ['按番限胡', 2,  hall_create.pos3X[2], hall_create.posY[9], false, false, false, null, ['mapid_1'], '一王至少2番，两王至少4番，三王四王8番起胡牌'],
        ['不限胡', 0,  hall_create.pos3X[3], hall_create.posY[9], false, false, false, null, ['mapid_1']]
    ]]
    ];
/**
 * 混桌适配文件
 * @type {Object}
 */
//现阶段不支持人数多选
hall.club_hunzhuo = {
    'btn_1' :{
        'hide':['maxPlayerCnt'],
        'view':['wanjiarenshu0','wanjiarenshu1','wanjiarenshu2'],
    },
    'btn_2' :{
        'hide':['maxPlayerCnt_yz'],
        'view':['wanjiarenshu0_yz','wanjiarenshu1_yz','wanjiarenshu2_yz'],
    },
    'btn_3' :{
        'hide':['maxPlayerCnt'],
        'view':['wanjiarenshu0','wanjiarenshu1','wanjiarenshu2'],
    },

};

hall.fangka = {
    btn_1: [[1, 1, 1], [4, 8]],
    btn_2: [[1, 1, 1], [4, 8]],
    btn_3: [[1, 1, 1], [4, 8]],
};



